'use strict';

let
    Koa = require('koa'),
    app = new Koa(),
    port = 9999,
    MiddleWare = require('./tempMiddleWare');

app.use(MiddleWare);

app.use(async (ctx, next) => {
    ctx.render('index.html', { name: '我' })
});

app.listen(port);

console.log(`http://localhost:${port}`);